package com.itheima.Test;

public class Test006 {
    public static void main(String[] args) {
        //把“E:\Workspace\201909\day14\RegexTest.java”文件路径，按照 \ 切割
        String s = "E:\\Workspace\\201909\\day14\\RegexTest.java";
        String[] s1 = s.split("[\\\\]");
        for (int i = 0; i < s1.length; i++) {
            System.out.println(s1[i]);
        }
    }
}